-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't show blank IPs metadata row for containers with no IP #960
Conversation
When does this happen? If it's due to |
The specific case I was seeing is when |
Yes, or the referenced container IPs if it also happens with On Tuesday, February 16, 2016, Paul Bellamy notifications@github.com
|
d427e38
to
6b73da0
Compare
6b73da0
to
df856d7
Compare
@2opremio wdyt? |
|
||
for id, c := range containers { | ||
networkMode, ok := c.Node.Latest.Lookup(docker.ContainerNetworkMode) | ||
if !ok || networkMode != docker.NetworkModeHost { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Also, it would be a good idea to add a test. |
Minor comment, extra issue and tests-aside LGTM |
Refactored a bit and added test, @2opremio wdyt? |
LGTM, but the linter is failing: ContainerWithHostIPsRenderer should have comment or be unexported |
0580262
to
5535f5e
Compare
Don't show blank IPs metadata row for containers with no IP
Previously we were adding the blank default IP, and showing that (an empty row), but we should skip the row if there are no IPs.
@2opremio ptal